package com.complex.spring.advance.aop.aspectj;

import org.springframework.aop.aspectj.annotation.AspectJProxyFactory;

public class AspectJProxyFactoryTest {
	public static void main(String[] args) {
		AspectJProxyFactory weaver = new AspectJProxyFactory();
		weaver.setTarget(new Foo());
		weaver.addAspect(PerformanceTraceAspect.class);
		
		Foo foo = (Foo)weaver.getProxy();
		foo.method1("11111");
		foo.method2(22222);
		
	}
}
